lifecycle_data = {
    "policy": {
        "phases": {
            "hot": {
                "actions": {
                    "rollover": {
                        "max_age": f"7d",
                        "max_size": f"40gb",
                        "max_docs": 30000000,
                    },
                    "set_priority": {
                        "priority": 100
                    }
                }
            },
            "warm": {
                "actions": {
                    "allocate": {
                        "number_of_replicas": 0,
                        "require": {
                            "temp": "*warm*"
                        }
                    },
                    "shrink": {
                        "number_of_shards": 1
                    },
                    "forcemerge": {
                        "max_num_segments": 1,
                        "index_codec": 'best_compression'
                    },
                    "set_priority": {
                        "priority": 50
                    }
                }
            },
            'cold': {
                "min_age": f"7d",
                "actions": {
                    "set_priority": {
                        "priority": 0
                    }
                }
            },
            'delete': {
                "min_age": f"180d",
                "actions": {
                    "delete": {}
                }
            }
        }
    }
}

template_data = {
    "priority": 100,
    "index_patterns": [
        f"{patten}-*"
    ],
    "template": {
        "settings": {
            "index": {
                "lifecycle.name": patten,
                "lifecycle.rollover_alias": patten,
                "number_of_replicas": 0,
                "number_of_shards": 5
            }
        },
        "mappings": mappings
    },
    "composed_of": ['dsm_dft'],
    "_meta": {}
}

index_data = {
    "aliases": {
        patten: {
            "is_write_index": True
        },
    }
}
